package com.lemlin.network

class HttpServiceResponse<HttpData : HttpServiceData> : HttpServiceStatus {

    var httpData: HttpData? = null

    override var statusCode: HttpServiceStatus.Status = HttpServiceStatus.Status.START

    override var throwable: Throwable? = null

//    override val statusTip: String
//        get() = when (statusCode) {
//            HttpServiceStatus.Status.START -> "开始请求"
//            HttpServiceStatus.Status.SUCCESS -> "请求成功"
//            HttpServiceStatus.Status.FAILURE -> throwable?.message ?: "未知错误"
//        }

    override val statusTip: String
        get() = super.statusTip

}